#include "test_i2c.h"
bsp_gpio_init_t gpio_i2c_sda = {
    1,//0:GPIOA,1:GPIOB
    5,//x:PINx
    0,//0:intput,1:output,reserve,not support;
    2,//0:Anolog,1:input,2:pushpull,3:OD
    0,//reserve,not support;
    0,//0:GPIO_IT_NONE,1:GPIO_IT_RISING,2:GPIO_IT_FALLING
    1,//0:GPIO_PULL_NONE,1:GPIO_PULL_UP
    4,//af4
};
bsp_gpio_init_t gpio_i2c_scl = {
    1,//0:GPIOA,1:GPIOB
    6,//x:PINx
    0,//0:intput,1:output,reserve,not support;
    2,//0:Anolog,1:input,2:pushpull,3:OD
    0,//reserve,not support;
    0,//0:GPIO_IT_NONE,1:GPIO_IT_RISING,2:GPIO_IT_FALLING
    1,//0:GPIO_PULL_NONE,1:GPIO_PULL_UP
    4,//af4
};
bsp_i2c_init_t i2c1 = {
    &gpio_i2c_sda,
    &gpio_i2c_scl,
    I2C_MD_MASTER,
    400000,
    0,
    0,
    0,
    I2C1_txbuf,
    I2C1_rxbuf,
};
void i2c_test_init(void)
{
    BSP_I2C_Init(&i2c1);
    // TODO: Implement this function
}

uint8_t reg[2] = {0x00,0x00};
void test_i2c_run(void)
{
    BSP_I2C_Write(&i2c1,0x50,reg,2,i2c1.txbuf,2);
    // TODO: Implement this function
}

